package com.gao.id.strategy;

import com.gao.id.IdGenerator;
import com.gao.id.support.GenRedisId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RedisId implements IdGenerator {

    @Autowired
    private GenRedisId genRedisId;

    @Override
    public Long nextId() {
        return genRedisId.nextId();
    }
}
